package com.glodon.paas.document.constant;

public class DocumentConstant {

    public static final Integer FILE_TYPE_FOLDER                = 1;  // 用户文件夹
    public static final Integer FILE_TYPE_FILE                  = 2;  // 用户文件
    // 文件状态
    public static final Integer FILE_STATUS_NORMAL              = 0;  // 正常文件
    public static final Integer FILE_STATUS_RECYCLE             = 1;  // 用户删除到回收站
    public static final Integer FILE_STATUS_RECYCLE_CASCADE     = 2;  // 级联删除到回收站
    public static final Integer FILE_STATUS_DELETED             = -1; // 用户彻底删除，删除标记，可在后台做物理删除

    // 共享权限
    public static final Integer SHARE_PRIVILEGE_READ            = 0;
    public static final Integer SHARE_PRIVILEGE_WRITE           = 1;

    // 共享类型
    public static final Integer SHARE_TYPE_NORMAL               = 0;
    public static final Integer SHARE_TYPE_SHARED               = 1;
    public static final Integer SHARE_TYPE_PUBLISHED            = 2;
    public static final Integer SHARE_TYPE_SHARED_AND_PUBLISHED = 3;
    
    public static final String FILE_PRIVILEGES = "privileges";
    public static final String FILE_READ = "r";
    public static final String FILE_WRITE = "w";
    public static final String FILE_DELETE = "d";
    public static final String FILE_ENTER = "x";
    public static final String FILE_INHERIT_READ = "i-r";
    public static final String FILE_INHERIT_WRITE = "i-w";
    public static final String FILE_INHERIT_DELETE = "i-d";
//    public static final String FILE_INHERIT_ENTER = "i-x";

    // 锁类型
    public static final Integer LOCK_TYPE_WRITE                 = 1;

    // 默认分页查询的count
    public static int           DEFAULT_COUNT                   = 100;

}
